package com.pkk.penguin.frame.know.springmvc.controller;

import com.pkk.penguin.frame.know.springmvc.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by peikunkun on 2018/1/7 0007.
 */
@Controller
@RequestMapping(value = "dateEntityController")
public class DateEntityController {


  @RequestMapping(value = "loadDate")
  public void loadUser(@ModelAttribute User user, Model model) {
    System.out.println("获取的user是:" + user);
    model.addAttribute("user", user);
  }


}
